package com.example.b_308.software.controller.message;

import com.example.b_308.software.model.MessageModel;
import com.example.b_308.software.model.Staff;
import com.example.b_308.software.view.main.message.IMessageView;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by B-308 on 2017/11/22.
 */
public class MessageController {
    private   IMessageView iMessageView;

    public MessageController(IMessageView iMessageView) {
        this.iMessageView = iMessageView;
    }

    public  void getList(){
        iMessageView.onRequestListSuccess(paraseList());
    }

    private List<MessageModel> paraseList() {
        List<MessageModel> list = new ArrayList();
       MessageModel messageModel;
        for(int i = 0 ; i < 100 ; i++ ){
            Staff s=new Staff();
            messageModel = new MessageModel(new Staff("hahah",""),"刚刚","你大爷的");

        }

        return list;

    }

}
